package Day05作业;
/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-11 20:07:24
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-18 14:56:00
 * @别瞎看: 你个无脑牛马
 */
public class TestCar {
    public static void main(String[] args) {
        // 实例化Car对象
        Car myCar = new Car("Red", "Toyota", 25000.0);

        // 调用方法输出对象属性信息
        myCar.displayInfo();

        // 调用前进、后退、转弯方法
        myCar.moveForward();
        myCar.moveBackward();
        myCar.turn();
    }
}